import request from '@/utils/request'

export function add(data) {
  return request({
    baseURL: '/API-B-BACKEND/',
    url: '/backend/sysDockingSystem/insert',
    method: 'post',
    data
  })
}

export function get(data) {
  return request({
    baseURL: '/API-B-BACKEND/',
    url: '/backend/sysDockingSystem/get',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    baseURL: '/API-B-BACKEND/',
    url: '/backend/sysDockingSystem/update',
    method: 'post',
    data
  })
}

/**
 * 查询字典项
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-B-APP/',
    url: '/app/sysDictionary/getDictByCode',
    method: 'get',
    params: { dictCode }
  })
}
